package dc.mst.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;

import dc.mst.dao.MstSiteDao;
import dc.mst.facade.MstSiteFacade;
@Service
public class MstSiteService implements MstSiteFacade {
	@Autowired
	private MstSiteDao mstSiteDao;
	
	public List<JSONObject> getList(JSONObject jsonParam, Integer start, Integer limit) throws Exception {
		// TODO Auto-generated method stub
		return this.mstSiteDao.getList(jsonParam, start, limit);
	}

	public int getTotal(JSONObject jsonParam) {
		// TODO Auto-generated method stub
		return this.mstSiteDao.getTotal(jsonParam);
	}

	public void insert(JSONObject jsonObject) throws Exception {
		// TODO Auto-generated method stub
		this.mstSiteDao.insert(jsonObject);
	}

	public int update(JSONObject json) throws Exception {
		// TODO Auto-generated method stub
		return this.mstSiteDao.update(json);
	}

	public JSONObject get(String siteId) throws Exception {
		// TODO Auto-generated method stub
		return this.mstSiteDao.get(siteId);
	}

}
